package bundle

import (
	"context"
	"gitee.com/kmyss/gf-ex/yscmd"
)

type FlagBranchBuilder struct {
	yscmd.FlagBuilderCore
}

func (b *FlagBranchBuilder) Init(ctx context.Context, group ...string) {
	b.FlagBuilderCore.Init(ctx, group...)
	b.F.Short = "b"
	b.F.Long = "branch"
	b.F.DefaultValue = nil
	b.F.Description = `
        分支名称`

}

func FlagBranch(ctx context.Context) *yscmd.Flag {
	b := FlagBranchBuilder{}
	b.Init(ctx)
	return b.Flag()
}
